home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / programm.ing / ams__l~1.zoo / include / easyspri.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-09-05  |  1.1 KB  |  34 lines

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. //  This file is part of the Atari Machine Specific Library,
  4. //  and is Copyright 1992 by Warwick W. Allison.
  5. //
  6. //  You are free to copy and modify these sources, provided you acknowledge
  7. //  the origin by retaining this notice, and adhere to the conditions
  8. //  described in the file COPYING.
  9. //
  10. //////////////////////////////////////////////////////////////////////////////
  11.  
  12. #ifndef _EasySprite_h
  13. #define _EasySprite_h
  14. #include "MobileSprite.h"
  15. //
  16. //  Simplified sprite creation routines.
  17. //
  18.  
  19. Incarnation* GetIncarnation(Screen& S,int x,int y,int h,int attr);
  20.  
  21. MobileSprite* GetMobileSprite(Screen&,int x,int y,int h,int attr,int n=1,int dx=16,int dy=0);
  22. Sprite* GetSprite(Screen&,int x,int y,int h,int attr,int n=1,int dx=16,int dy=0);
  23.  
  24. // Attributes:
  25. //
  26. #define SP_SIMPLE        0x0        // No special features
  27. #define SP_MONO            0x0        // Monochrome
  28. #define SP_COLOUR        0x1        // 16-Colour
  29. #define SP_WIDE            0x2        // 32 pixels wide
  30. #define SP_FAST            0x4        // Faster, but use more memory
  31. #define SP_HOTCENTRE    0x8        // Hot spot of incarnations in there centre
  32.  
  33. #endif
  34.